package com.gl.doc.operation.comment.entity;

import com.gl.doc.builder.WordDocument;
import com.gl.doc.model.WordComment;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * word批注关系对象
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class WordCommentRelation {
    /**
     * word批注对象
     */
    private WordComment wordComment;
    /**
     * word文档
     */
    private WordDocument wordDocument;
    /**
     * 需要添加批注的句子或者文字 坐标存储对象
     */
    private TargetSentenceIndex targetSentenceIndex;
    /**
     * 添加批注的子段落：需要添加批注的句子或文字出现在字段落的坐标集合
     */
    private List<TargetSubParagraphContentIndex> targetSubParagraphContentIndexList;

    /**
     * 构造器
     *
     * @param wordComment  批注对象
     * @param wordDocument word文档对象
     */
    public WordCommentRelation(WordComment wordComment, WordDocument wordDocument) {
        this.wordComment = wordComment;
        this.wordDocument = wordDocument;
    }
}
